cisco-cvp-ux
Get ResourceDetails - TMF639 GET
Request
URL
http://[host]:[port]/cisco-cvp-ux/v1/{businessId}/resource
URI Parameter
Name | Type | M/O | Description |
---|---|---|---|
businessId | string | M | Business unit identifier. Can be one of: "JM", "PA", "PR", "CL", "CR" |
Headers
name | value | description | required |
---|---|---|---|
X-Correlation-ID | string | This is a unique identifier for the current call chain that can be used to tie together log entries on multiple layers. Example: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b | M |
lob | string | It defines the Line of Business . Example : PREPAID | M |
channelId | string | Channel to identify the business group. Eg:ivrB2C | O |
Security Headers
Name | Type | M/O | Description |
---|---|---|---|
client_id | string | M | Client Id value for Client Id Enforcement policy. Environment Specific Value. Eg: 6f0ed16a7b494d76b2d60e05bc3b3332 |
client_secret | string | M | Client secret value for Client Id Enforcement policy. Environment Specific Value, eg: e4CD4D43449846aA9D8Cb9c43fAd324a |
Response
Possible success response
This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.
[ 200 ]
{
"id": "000100000000040439",
"@type": "PhysicalResource",
"name": "IMEI Number",
"resourceCharacteristic": [
{
"value": "500020",
"name": "activationCode"
}
],
"resourceSpecification": {
"id": "000000000000117052",
"name": "MobileDeviceSKU",
"@referredType": "PhysicalResourceSpecification"
},
"resourceRelationship": [
{
"relationshipType": "paried",
"resource": {
"id": "10345267",
"name": "ICCID Number",
"@type": "PhysicalResource",
"resourceSpecification": {
"id": "000000000000117088",
"name": "SIMCardSKU",
"@referredType": "PhysicalResourceSpecification"
}
}
}
]
}
Definitions
name | type | description | required |
---|---|---|---|
administrativeState | string | A resource administrative state type (ResourceAdministrativeStateType). Tracks the administrative state of the resource, such as locked, unlocked, shutdown and so on. | N |
attachment | object array | A list of attachment ref or values (AttachmentRefOrValue [*]). the attribute type,schemaLocation and referredType are related to the contained entity and not to AttchmentRefOrValue itself. | N |
attachment.@referredType | string | The actual type of the target instance when needed for disambiguation. | N |
attachment.description | string | A narrative text describing the content of the attachment. | N |
attachment.href | string | URI for this Attachment. | N |
attachment.id | string | Unique identifier for this particular attachment. | N |
attachment.url | string | Uniform Resource Locator, is a web page address (a subset of URI) | N |
attachment.name | string | The name of the attachment. | N |
attachment.attachmentType | string | Attachment type such as video, picture. | N |
attachment.content | base64 | A base 6 4 (Base64). The actual contents of the attachment object, if embedded, encoded as base64. | N |
attachment.mimeType | string | Attachment mime type such as extension file for video, picture and document | N |
attachment.size | object | A quantity (Quantity). The size of the attachment. | N |
attachment.size.amount | float | Numeric value in a given unit. | N |
attachment.size.units | string | units | N |
attachment.validFor | object | The period of time for which the attachment is valid. | N |
attachment.validFor.startDateTime | dateTime | Start of the time period, using IETC-RFC-3339 format | N |
attachment.validFor.endDateTime | dateTime | End of the time period, using IETC-RFC-3339 format | N |
category | string | Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource | N |
description | string | free-text description of the resource | N |
endOperatingDate | dateTime | The date till the resource is operating. | N |
href | string | The URI for the object itself. | N |
id | string | Identifier of an instance of the resource. Required to be unique within the resource type. Used in URIs as the identifier for specific instances of a type | N |
name | string | A string used to give a name to the resource. | N |
value | string | The value of the logical resource. E.g '0746712345' for MSISDN's | Y |
note | object array | A list of notes (Note [*]) Extra information about a given entity. | N |
note.id | string | Identifier of the note within its containing entity (may or may not be globally unique, depending on provider implementation). | N |
note.author | string | Author of the note. | N |
note.date | dateType | Date of the note. | N |
note.text | string | Text of the note. | N |
operationalState | string | A resource operational state type (ResourceOperationalStateType). Tracks the operational state of the resource, such as enable, disable and so on. | Y |
place | object | A related place ref or value (RelatedPlaceRefOrValue). Related Entity reference. A related place defines a place described by reference or by value linked to a specific entity. The polymorphic attributes @type, @schemaLocation & @referredType are related to the place entity and not the RelatedPlaceRefOrValue class itself. | N |
place.id | description: Unique identifier of the place | N | |
place.@referredType | string | The actual type of the target instance when needed for disambiguation. | N |
place.href | string | Reference of the related entity. | N |
place.name | string | Name of the related entity. | N |
place.role | string | Role played | N |
relatedParty | object array | A list of related parties (RelatedParty [*]). Related Entity reference. A related party defines party or party role linked to a specific entity | N |
relatedParty.id | string | Unique identifier of a related entity | N |
relatedParty.@referredType | string | The actual type of the target instance when needed for disambiguation. | N |
relatedParty.href | string | Reference of the related entity. | N |
relatedParty.name | string | Name of the related entity. | N |
relatedParty.role | string | Role played by the related party. | N |
resourceCharacteristic | object array | A list of characteristics (Characteristic [*]). Describes a given characteristic of an object or entity through a name/value pair. | N |
resourceCharacteristic.characteristicRelationship | object array | A list of characteristic relationships (CharacteristicRelationship [*]). Another Characteristic that is related to the current Characteristic; | N |
resourceCharacteristic.characteristicRelationship.id | string | Unique identifier of the characteristic. | N |
resourceCharacteristic.characteristicRelationship.relationshipType | string | The type of relationship. | N |
resourceCharacteristic.id | string | Unique identifier of the characteristic | N |
resourceCharacteristic.name | string | Name of the characteristic | N |
resourceCharacteristic.value | any | The value of the characteristic | N |
resourceCharacteristic.valueType | string | Data type of the value of the characteristic | N |
resourceRelationship | array | A list of resource relationships (ResourceRelationship [*]). Linked resources to the one instantiate, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (e.g. an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be usefu | N |
resourceRelationship.relationshipType | string | A string. Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (e.g. an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful. | N |
resourceRelationship.resource | object | A resource ref or value (ResourceRefOrValue). A resource to be created defined by value or existing defined by reference. The polymorphic attributes @type, @schemaLocation & @referredType are related to the product entity and not the RelatedProductRefOrValue class itself. | N |
resourceSpecification | object | A resource specification reference (ResourceSpecificationRef). The ResourceSpecification is required to realize a ProductSpecification. | N |
resourceSpecification.id | string | reference id to the target constraint. | N |
resourceSpecification.name | string | Name given to the constraint. | N |
resourceSpecification.version | string | constraint version. | N |
resourceSpecification.@referredType | string | The actual type of the target instance when needed for disambiguation. | N |
resourceStatus | string | A resource status type (ResourceStatusType). Tracks the resource status of the resource, such as standby, alarm, available, reserved, suspended and so on. | N |
resourceVersion | string | A field that identifies the specific version of an instance of a resource | N |
startOperatingDate | dateType | A date time( DateTime). The date from which the resource is operating. | N |
usageState | string | A resource usage state type (ResourceUsageStateType). Tracks the usage state of the resource, such as idle, active, busy and so on. | N |
resourceRelationship.resource.id | string | Unique identifier of an instance of the resource | N |
resourceRelationship.resource.name | string | Name of the resource | N |
@type | string | When sub-classing, this defines the sub-class Extensible name | N |
@baseType | string | When sub-classing, this defines the super-class | N |
Possible response errors
[ 400 ]
Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
{
"errors": [
{
"code": 400,
"message": "APIKIT:BAD_REQUEST",
"description": "Invalid value 'M' for uri parameter businessId. M is not a valid enum value"
}
]
}
[ 401 ]
Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
{
"errors" : [{
"code" : 401,
"message" : "The user could not be authenticated for this request.",
"description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
}]
}
[ 403 ]
Forbidden - Indicates that the server understood the request but refuses to fulfill it. If authentication credentials were provided in the request, the server considers them insufficient to grant access. The client SHOULD NOT automatically repeat the request with the same credentials. The client MAY repeat the request with new or different credentials.
[ 404 ]
Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
{
"errors": [
{
"code": 404,
"message": "APIKIT:NOT_FOUND",
"description": "/PR/resource1"
}
]
}
[ 405 ]
Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
{
"errors": [
{
"code": 405,
"message": "APIKIT:METHOD_NOT_ALLOWED",
"description": "HTTP Method post not allowed for : /{businessId}/resource"
}
]
}
[ 500 ]
Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.
{
"errors" : [{
"code" : 500,
"message" : "The request failed due to an internal error.",
"description": "error description"
}]
}
[ 501 ]
Check for the other BU Flows, if not implemented then throw a standard error message as below.
{
"errors": [
{
"code": 501,
"message": "NOT IMPLEMENTED",
"description": "Operation GET /{businessId}/resource for Business Id: PA not implemented."
}
]
}
[ 503 ]
Service Unavailable
{
"errors": [
{
"code": 503,
"message": "HTTP:SERVICE_UNAVAILABLE",
"description": "HTTP GET on resource 'http://0.0.0.0:9091//tmf-api/resource-inventory-management-biz/v1/{businessId}/resource' failed: service unavailable (503)."
}
]
}